<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/commons/taglibs.jsp"%>
<!DOCTYPE html>
<html>
<head>
    <title>绑定账号</title>
    <script type="text/javascript">
        $(window).on('load', function () {
            $('.selectpicker').selectpicker({
                'selectedText': 'cat'
            });  
        });
 
    </script>
</head>

<body>
    <!-- <div id="sidebar"></div> -->
    <div id="content" class="well">
        <form:form id="form" class="form-horizontal" role="form" modelAttribute="voModel" action="${ctx}/bind/bindUser.do" method="post">
            <c:choose>
                <c:when test="${type eq 'info'}">
                    <div class="alert alert-info alert-dismissable">
                        <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
                        <strong>系统提示!</strong><br/>
                       	${infoMsg}
                    </div>
                </c:when>
                <c:when test="${type eq 'error'}">
                    <div class="alert alert-warning alert-dismissable">
                        <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
                        <strong>错误提示!</strong><br/>
                        <form:errors path="*"/>
                        ${errotMsg}
                    </div>
                </c:when>
            </c:choose>
            
            
            <form:hidden path="token" />
            <form:hidden path="openId" />
            
            <!-- 
            <div class="form-group">
                <label for="token" class="col-sm-3 control-label">tocken</label>
                <div class="col-sm-9">
                    <form:input path="token" id="token" class="form-control required" placeholder="在此输入tocken" readonly="readonly" value="${tokenID}"/>
                    <form:errors path="token"/>
                </div>
            </div>
            
            <div class="form-group">
                <label for="openId" class="col-sm-3 control-label">openID</label>
                <div class="col-sm-9">
                    <form:input path="openId" id="openId" class="form-control required" placeholder="在此输入openID" readonly="readonly" value="${openId}"/>
                	<form:errors path="openId"/>
                </div>
            </div>
 			-->
 			
            <div class="form-group">
                <label for="name" class="col-sm-3 control-label">用户名称</label>
                <div class="col-sm-9">
                    <form:input path="name" id="name" class="form-control required" placeholder="在此输入用户名称" />
                    <form:errors path="name"/>
                </div>
            </div>
            
            <div class="form-group">
                <label for="phone" class="col-sm-3 control-label">电话号码</label>
                <div class="col-sm-9">
                    <form:input path="phone" id="phone" class="form-control required" placeholder="在此输入电话号码" />
                    <form:errors path="phone"/>
                </div>
            </div>

            <div class="btnArea">
                <input class="btn btn-lg btn-primary btn-block" type="submit" name="submit" value="绑定" />
            </div>

        </form:form>
    </div>
    <div class="clear"></div>
</body>
</html>
